package com.itheima.mapper;

import com.itheima.pojo.User;
import com.itheima.pojo.UserDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    @Select("select count(*) from user")
    long count();

    List<User> findBylimit(UserDto userDto, Integer start);
    @Select("select * from user where username=#{username} and password=#{password}")
    User login(User user);
}


